package com.cqjtu.mapper;

import com.cqjtu.pojo.Worker;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkerMapper {

    //删除工人
    void delete(List<Integer> workerId);

    void add(Worker worker);

    //工人条件查询
    List<Worker> list(String workerName, List<Integer> teamsId);

    Worker find(Integer workerId);

    void updateWorker(Worker worker);

    List<Worker> list2(Integer teamsId);


    List<Worker> list3(String workerName, String teamsName);
}
